package com.yuqing.myblogServe.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuqing.myblogServe.dao.entity.ArticleComment;
import com.yuqing.myblogServe.dao.entity.ArticleLikesRecord;
import com.yuqing.myblogServe.dto.ArticleCommentDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleCommentMapper extends BaseMapper<ArticleComment> {

    List<ArticleCommentDto> listCommentByPage(@Param("userId") Long userId, @Param("articleId") String articleId);

    void addReplyCommentCount(@Param("commentId") String commentId);

}
